#include "SDcard.h"

SDcard::SDcard() {

}

SDcard::SDcard(string pid, string brand, int stock, int price, int memory, string cardType)
	: Products( pid, brand, stock, price) {
		setMemory(memory);
		setCardType(cardType);
}

int SDcard::getMemory() {
	return this->memory;
}

void SDcard::setMemory(int memory) {
	this->memory = memory;
}

string SDcard::getCardType() {
	return this->cardType;
}

void SDcard::setCardType(string cardType) {
	this->cardType = cardType;
}

void SDcard::productInfo() {
	Products::productInfo();
	stringstream ss;
	ss << getMemory() << "GB";
	// cout << " |" << getMemory() << " |" << getCardType();
	 cout << " | " << setw(12) <<  ss.str() << " | " << setw(10) << getCardType();
}
